package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.Score;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

//@Mapper注解要定义成一个接口,接口交给Spring进行管理,不用写Mapper映射文件xml，接口生成一个实现类，让别的类进行引用
@Mapper
public interface ScoreMapper extends BaseMapper<Score> {
    List<Score> selectScore();

    Integer deleteScoreById(@Param("stuId") Integer stuId);
    Integer updateScore(Score score);
    Integer saveScore(Score score);
}
